/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * Copyright (c) 2024 STMicroelectronics.
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file
  * in the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32h7xx_hal.h"

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */

/* USER CODE END Includes */

/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */

/* USER CODE END ET */

/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */

/* USER CODE END EC */

/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */

/* USER CODE END EM */

/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

/* USER CODE BEGIN EFP */

/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define OverCurP_I_LL_PE4_Pin GPIO_PIN_4
#define OverCurP_I_LL_PE4_GPIO_Port GPIOE
#define Short_CTRL_PE5_Pin GPIO_PIN_5
#define Short_CTRL_PE5_GPIO_Port GPIOE
#define QuieCur_CTRL_O_PE6_Pin GPIO_PIN_6
#define QuieCur_CTRL_O_PE6_GPIO_Port GPIOE
#define OverCurCtr_O_LL_PC13_Pin GPIO_PIN_13
#define OverCurCtr_O_LL_PC13_GPIO_Port GPIOC
#define PC14_OSC32_IN_Pin GPIO_PIN_14
#define PC14_OSC32_IN_GPIO_Port GPIOC
#define PC15_OSC32_OUT_Pin GPIO_PIN_15
#define PC15_OSC32_OUT_GPIO_Port GPIOC
#define PH0_OSC_IN_Pin GPIO_PIN_0
#define PH0_OSC_IN_GPIO_Port GPIOH
#define PH1_OSC_OUT_Pin GPIO_PIN_1
#define PH1_OSC_OUT_GPIO_Port GPIOH
#define A13_5V_1_ADC_PC0_Pin GPIO_PIN_0
#define A13_5V_1_ADC_PC0_GPIO_Port GPIOC
#define DUT_I__I_ADC_PC1_Pin GPIO_PIN_1
#define DUT_I__I_ADC_PC1_GPIO_Port GPIOC
#define A13_5V_2_ADC_PC2_Pin GPIO_PIN_2
#define A13_5V_2_ADC_PC2_GPIO_Port GPIOC
#define CurDetect_I_ADC_PC3_Pin GPIO_PIN_3
#define CurDetect_I_ADC_PC3_GPIO_Port GPIOC
#define Bolt_ADC_I_PA7_Pin GPIO_PIN_7
#define Bolt_ADC_I_PA7_GPIO_Port GPIOA
#define UART7_RX_PE7_Pin GPIO_PIN_7
#define UART7_RX_PE7_GPIO_Port GPIOE
#define UART7_TX_PE8_Pin GPIO_PIN_8
#define UART7_TX_PE8_GPIO_Port GPIOE
#define SW1_Pin GPIO_PIN_9
#define SW1_GPIO_Port GPIOE
#define SW2_Pin GPIO_PIN_10
#define SW2_GPIO_Port GPIOE
#define SW3_Pin GPIO_PIN_11
#define SW3_GPIO_Port GPIOE
#define Test_pin_Pin GPIO_PIN_12
#define Test_pin_GPIO_Port GPIOE
#define Output11_O_PE13_Pin GPIO_PIN_13
#define Output11_O_PE13_GPIO_Port GPIOE
#define OUT10_PD13_Pin GPIO_PIN_13
#define OUT10_PD13_GPIO_Port GPIOD
#define OUT9_PD14_Pin GPIO_PIN_14
#define OUT9_PD14_GPIO_Port GPIOD
#define OUT8_PD15_Pin GPIO_PIN_15
#define OUT8_PD15_GPIO_Port GPIOD
#define OUT7_PC6_Pin GPIO_PIN_6
#define OUT7_PC6_GPIO_Port GPIOC
#define INPUT6_PC8_Pin GPIO_PIN_8
#define INPUT6_PC8_GPIO_Port GPIOC
#define START2_TEST_I_PA9_Pin GPIO_PIN_9
#define START2_TEST_I_PA9_GPIO_Port GPIOA
#define MANUAL_RESET_I_PA10_Pin GPIO_PIN_10
#define MANUAL_RESET_I_PA10_GPIO_Port GPIOA
#define SWDIO_Pin GPIO_PIN_13
#define SWDIO_GPIO_Port GPIOA
#define SWCLK_Pin GPIO_PIN_14
#define SWCLK_GPIO_Port GPIOA
#define START1_TEST_I_PA15_Pin GPIO_PIN_15
#define START1_TEST_I_PA15_GPIO_Port GPIOA
#define PhotoElectricSW_I_PC10_Pin GPIO_PIN_10
#define PhotoElectricSW_I_PC10_GPIO_Port GPIOC
#define Output10_O_PC12_Pin GPIO_PIN_12
#define Output10_O_PC12_GPIO_Port GPIOC
#define Output9_O_PD0_Pin GPIO_PIN_0
#define Output9_O_PD0_GPIO_Port GPIOD
#define OUT6_PD1_Pin GPIO_PIN_1
#define OUT6_PD1_GPIO_Port GPIOD
#define OUT3_PD4_Pin GPIO_PIN_4
#define OUT3_PD4_GPIO_Port GPIOD
#define OUT2_PD5_Pin GPIO_PIN_5
#define OUT2_PD5_GPIO_Port GPIOD
#define OUT1_PD6_Pin GPIO_PIN_6
#define OUT1_PD6_GPIO_Port GPIOD
#define INPUT5_PD7_Pin GPIO_PIN_7
#define INPUT5_PD7_GPIO_Port GPIOD
#define INPUT4_PB3_Pin GPIO_PIN_3
#define INPUT4_PB3_GPIO_Port GPIOB
#define INPUT3_PB4_Pin GPIO_PIN_4
#define INPUT3_PB4_GPIO_Port GPIOB
#define INPUT2_PB7_Pin GPIO_PIN_7
#define INPUT2_PB7_GPIO_Port GPIOB
#define UART4_RX_I_PB8_Pin GPIO_PIN_8
#define UART4_RX_I_PB8_GPIO_Port GPIOB
#define UART4_TX_O_PB9_Pin GPIO_PIN_9
#define UART4_TX_O_PB9_GPIO_Port GPIOB
#define INPUT1_PE0_Pin GPIO_PIN_0
#define INPUT1_PE0_GPIO_Port GPIOE
#define CAN_Silent_O_PE10_Pin GPIO_PIN_1
#define CAN_Silent_O_PE10_GPIO_Port GPIOE

/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
